<template>
	<view>
		<view class="top_bar">
			<view class="flex align-center">
				<navigator open-type="navigateBack"  class="cuIcon-back margin-right-sm"></navigator>
				<view class="flex flex-direction align-center">
					<image src="https://img.js.design/assets/img/5fdd6d3c85f6379fa22c05e5.png" mode="aspectFill" class="avatar"></image>
					<view class="online flex align-center"> 
						<view class="circle margin-right-xs"></view>
						<view>在线中</view>
					</view>
				</view>
			</view>
		</view>

		<view class="cu-chat">
			<view class="cu-item self">
				<view class="main">
					<view class="content bg-green shadow">
						<text>喵喵喵！喵喵喵！喵喵喵！喵喵！喵喵！！喵！喵喵喵！</text>
					</view>
				</view>
				<view class="cu-avatar radius" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big107000.jpg);"></view>
				<view class="date">2018年3月23日 13:23</view>
			</view>
			<view class="cu-info round">对方撤回一条消息!</view>
			<view class="cu-item">
				<view class="cu-avatar radius" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big143004.jpg);"></view>
				<view class="main">
					<view class="content shadow">
						<text>喵喵喵！喵喵喵！</text>
					</view>
				</view>
				<view class="date "> 13:23</view>
			</view>
			<view class="cu-info">
				<text class="cuIcon-roundclosefill text-red "></text> 对方拒绝了你的消息
			</view>
			<view class="cu-info">
				对方开启了好友验证，你还不是他(她)的好友。请先发送好友验证请求，对方验证通过后，才能聊天。
				<text class="text-blue">发送好友验证</text>
			</view>
		</view>

		<view class="cu-bar foot input" :style="[{bottom:InputBottom+'px'}]">
			<view class="action">
				<text class="cuIcon-add text-grey"></text>
			</view>
			<input class="solid-bottom" @focus="InputFocus" @blur="InputBlur" :adjust-position="false" :focus="false" maxlength="300" cursor-spacing="10"
		></input>
			<view class="action">
				<text class="cuIcon-emojifill text-grey"></text>
			</view>
			<button class="cu-btn bg-orange-dark shadow">发送</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				InputBottom: 0
			}
		},
		methods: {
			InputFocus(e) {
							this.InputBottom = e.detail.height
						},
			InputBlur(e) {
				this.InputBottom = 0
			}
		}
	}
</script>

<style scoped>
	.top_bar{
		background: #fff;
		position: fixed;
		top: 0;
		height: 120rpx;
		padding-top: 0px;
		z-index: 9999;

		padding-left: 46rpx;
		width: 100%;
		font-size: 36rpx;
		display: flex;
		
	}
	.cu-chat{
		margin-top: 130rpx;
		
	}
	.game_img{
		border-radius: 40rpx;
		width: 218rpx;
		height: 218rpx;
		margin-right: 20rpx;
	}
	.game_detail{
		margin-top: 110rpx;
	}
	.game_title{
		color: rgba(28, 29, 32, 1);
		font-size: 40rpx;
	}
	.game_sub_title{
		font-size: 30rpx;
	}
	.show_more{
		background: rgba(245, 127, 10, 1);
		color: #fff;
		font-size: 18rpx;
		border-radius: 10rpx;
		padding: 10rpx 20rpx;
	}
	.user_avatar{
		width: 60rpx;
		height: 60rpx;
		border-radius: 10rpx;
	}
	.avatar{
		width: 64rpx;
		height: 64rpx;
		border-radius: 50%;
		margin: 0;
		padding: 0;
	}
	.online{
		color: rgba(70, 209, 145, 1);
		font-size: 24rpx;
		margin: 0;
		padding: 0;
		
	}
	.circle{
		width: 16rpx;
		height: 16rpx;
		border-radius: 50%;
		background:rgba(70, 209, 145, 1) ;
	}
</style>
